package pjkanri.service;

import java.util.List;

import pjkanri.dao.AccountDAO;
import pjkanri.dao.DAOException;
import pjkanri.entity.Account;

public class AccountService {
	
	public static void insert(Account account) throws DAOException {
		AccountDAO accountdao = new AccountDAO();
		accountdao.insert(account);
	}
	
	public static void update(Account account) throws DAOException {
		AccountDAO accountdao = new AccountDAO();
		accountdao.update(account);
	}
	
	public static List<Account> getAccountList() throws DAOException {
		AccountDAO accountdao = new AccountDAO();
		return accountdao.getAccountList();
	}
}
